package com.webfinal.backsystem.dao;

import com.webfinal.backsystem.entity.ProductType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductTypeMapper {
    int deleteByPrimaryKey(Integer typeId);

    int insert(ProductType record);

    ProductType selectByPrimaryKey(Integer typeId);

    List<ProductType> selectAll();

    int updateByPrimaryKey(ProductType record);

    ProductType selectByName(String typeName);
}